package month3.day28;

import org.omg.CORBA.PUBLIC_MEMBER;

public class Teacher {
    private String name;
    private int age;
    private int teach;
    private String sex;
    private String tool;
    public Teacher(){

    }
    public Teacher(String name, int age, int teach, String sex, String tool) {
        this.name = name;
        this.age = age;
        this.teach = teach;
        this.sex = sex;
        this.tool = tool;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getTeach() {
        return teach;
    }

    public void setTeach(int teach) {
        this.teach = teach;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
    public void selfIntroduce(){
        System.out.println("老师叫"+name+",年龄："+age+",教龄："+teach+",性别："+sex);
    }
    public void giveLession(){
        System.out.println("用"+tool+"上课");
    }

}
